﻿using System;
using Microsoft.Practices.Prism.ViewModel;

namespace CharacterCreation.Data.Models {
    [Serializable]
    public abstract class BasePersistanceClass : NotificationObject {
        public Guid ID { get; set; }

        /// <summary>
        /// Gets or sets the Name
        /// </summary>
        public string Name {
            get { return _Name; }
            set {
                _Name = value;
                RaisePropertyChanged("Name");
            }
        }
        private string _Name;


        
        /// <summary>
        /// Gets or sets the TimeStamp
        /// </summary>
        public DateTime TimeStamp {
            get { return _TimeStamp; }
            set {
                _TimeStamp = value;
                RaisePropertyChanged("TimeStamp");
            }
        }
        private DateTime _TimeStamp;
                
                

        public virtual void Register() { }
    }
}
